package com.qidian.md.mapper;

import com.qidian.mes.pojo.md.Workshop;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface WorkshopMapper {


    List<Workshop> selectByPage(@Param("workshop")Workshop workshop, @Param("start") Integer start, @Param("limit") Integer limit);

    Integer selectCount(Workshop workshop);


    int addWorkshop( Workshop workshop);


    /**
     * 根据输入的id查询车间
     * @param workshopId
     * @return
     */
    Workshop selectById(Long workshopId);
    /**
     * 修改数据更新
     * @param workshop
     * @return
     */
    Integer update(Workshop workshop);




    Integer deleteUpdateStatus(Long workshopId);


    Integer deleteUpdateSelect(Long[] workshopId);

}
